package com.ms3ds.deviceData.api;

import com.ms3ds.common.core.constant.ServiceNameConstants;
import com.ms3ds.common.core.domain.R;
import com.ms3ds.deviceData.api.domain.Device;
import com.ms3ds.deviceData.api.factory.RemoteDeviceFallbackFactory;
import com.ms3ds.deviceData.api.factory.RemoteSensorDataFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 矿山信息服务
 * 
 * @author zlw
 */
@FeignClient(contextId = "remoteDeviceService", value = ServiceNameConstants.DEVICE_DATA_SERVICE, fallbackFactory = RemoteDeviceFallbackFactory.class)
public interface RemoteDeviceService
{
    @PostMapping("/device/listForRemote")
    public R<List<Device>> listForRemote(@RequestBody Device device);
}
